package com.sp.system.user.core.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.jms.Queue;

@Component
public class QueueConfig {

   public static String spQueue = "sp_queue";
    
    //首先将队列注入到SpringBoot容器中去
    @Bean
    public Queue queue() {
        return new ActiveMQQueue(spQueue);
    } 
    
}